package vtt.android.lichphatsongbongda.entities;

import org.json.JSONObject;

import vtt.android.library.utils.api_helper.JSONUtil;

/**
 * @author vinhtt
 */
public class TVScheduleItem {
	private String thoigian;
	private String trandau;
	private String giaidau;
	private String kenh;
	
	// custom field
	private boolean hasHeader;
	private String headerTime;
    
    public TVScheduleItem(JSONObject jsonObject) {
        this.thoigian = JSONUtil.get(jsonObject, "thoigian");
        this.trandau = JSONUtil.get(jsonObject, "trandau");
        this.giaidau = JSONUtil.get(jsonObject, "giaidau");
        this.kenh = JSONUtil.get(jsonObject, "kenh");
    }
    
	public TVScheduleItem(String thoigian, String trandau, String giaidau, String kenh) {
		this.thoigian = thoigian;
		this.trandau = trandau;
		this.giaidau = giaidau;
		this.kenh = kenh;
	}

	/**
	 * @return the thoigian
	 */
	public String getThoigian() {
		return thoigian;
	}

	public void setThoigian(String thoigian) {
		this.thoigian = thoigian;
	}

	/**
	 * @return the trandau
	 */
	public String getTrandau() {
		return trandau;
	}

	/**
	 * @return the giaidau
	 */
	public String getGiaidau() {
		return giaidau;
	}

	/**
	 * @return the kenh
	 */
	public String getKenh() {
		return kenh;
	}

	public boolean hasHeader() {
		return hasHeader;
	}

	public void setHasHeader(boolean isHeader) {
		this.hasHeader = isHeader;
	}

	/**
	 * @return the headerTime
	 */
	public String getHeaderTime() {
		return headerTime;
	}

	/**
	 * @param headerTime the headerTime to set
	 */
	public void setHeaderTime(String headerTime) {
		this.headerTime = headerTime;
	}

}
